package ppms.ui.edtor;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;

import ppms.commons.data.entity.IDataEntity;

/**
 * 物业信息编辑界面输出对象
 * @author gavin 2009-4-6
 *
 */
public class PropertyEditorInput  implements IEditorInput
{

    public IDataEntity data;
    public PropertyEditorInput(IDataEntity data)
    {
	this.data = data;
    }
    
    public IDataEntity getData()
    {
	return this.data;
    }
    
    public boolean exists()
    {
	return false;
    }

    public ImageDescriptor getImageDescriptor()
    {
	return null;
    }

    public String getName()
    {
	return "编辑" + this.data.getValue();
    }

    public IPersistableElement getPersistable()
    {
	return null;
    }

    public String getToolTipText()
    {
	return this.data.getValue();
    }

    public Object getAdapter(Class arg0)
    {
	return null;
    }

}
